home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- set the cursor of sprite the spriteNum of me to [member "Closed Hand", member "Closed Hand Mask"]
- repeat while the stillDown
- if (the mouseH > 185) and (the mouseH < 607) then
- set the locH of sprite 5 to the mouseH
- set DV to the locH of sprite 5 - 185
- set DV to DV / 19
- set DV to (DV * 40) + 140
- put DV into field "frequency"
- puppetSound(field "frequency" & ".aif")
- set DH to ((1020 - field "frequency") / 20 * 50) + 452
- spriteBox(3, the left of sprite 3, the top of sprite 3, 452 + DH, the bottom of sprite 3)
- set the floatPrecision to 5
- put "f =" & field "frequency" & " Hz, P =" & 1.0 / float(field "frequency") & " sec." into field "FD"
- updateStage()
- end if
- end repeat
- set the cursor of sprite the spriteNum of me to [member "Hand", member "Hand Mask"]
- updateStage()
- end
-
- on beginSprite me
- set the cursor of sprite the spriteNum of me to [member "Hand", member "Hand Mask"]
- end
-
- on endSprite me
- set the cursor of sprite the spriteNum of me to 0
- end
-